<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>BabyOS: test.c Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="2.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">BabyOS
   &#160;<span id="projectnumber">V1.1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_b9223522bb56aee4ab59f7ba381d2163.html">bos</a></li><li class="navelem"><a class="el" href="dir_f2a2cc749b6bfcea90db6730434b0bd6.html">core</a></li><li class="navelem"><a class="el" href="dir_376a7dcbd1f9af36f126855cda4c2eb7.html">test</a></li><li class="navelem"><a class="el" href="dir_297b140a54cd2f382ae96a5a615c8093.html">lunar</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">test.c</div>  </div>
</div><!--header-->
<div class="contents">
<a href="test_8c.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#include &lt;stdio.h&gt;</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="b__lunar_8h.html">b_lunar.h</a>&quot;</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;</div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;</div><div class="line"><a name="l00006"></a><span class="lineno"><a class="line" href="test_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4">    6</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="test_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a>()</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;{</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;    <span class="keywordtype">int</span> year, month, day;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;    <a class="code" href="structb_lunar_info__t.html">bLunarInfo_t</a> result;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;    <span class="keywordflow">while</span>(1)</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;    {</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;        printf(<span class="stringliteral">&quot;&gt;&gt;enter year month day\r\n&quot;</span>);</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;        scanf(<span class="stringliteral">&quot;%d %d %d&quot;</span>, &amp;year, &amp;month, &amp;day);</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;        <a class="code" href="group___l_u_n_a_r___exported___functions.html#ga2e56b0cadb491906cddfebe953e796a9">bSolar2Lunar</a>(year, month, day, &amp;result);</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;        printf(<span class="stringliteral">&quot;lunar:%d-%d-%d\r\n&quot;</span>, result.<a class="code" href="structb_lunar_info__t.html#a57ca98d8f6d4baf0fe41c583c7dcb0d5">year</a>, result.<a class="code" href="structb_lunar_info__t.html#a3e00faf7fbf9805e9ec4d2edd6339050">month</a>, result.<a class="code" href="structb_lunar_info__t.html#a72369a1087b2aeffe374bb054cb97c12">day</a>);</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;    }</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;    <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;}</div><div class="ttc" id="structb_lunar_info__t_html_a3e00faf7fbf9805e9ec4d2edd6339050"><div class="ttname"><a href="structb_lunar_info__t.html#a3e00faf7fbf9805e9ec4d2edd6339050">bLunarInfo_t::month</a></div><div class="ttdeci">uint8_t month</div><div class="ttdef"><b>Definition:</b> <a href="b__lunar_8h_source.html#l00060">b_lunar.h:60</a></div></div>
<div class="ttc" id="structb_lunar_info__t_html"><div class="ttname"><a href="structb_lunar_info__t.html">bLunarInfo_t</a></div><div class="ttdef"><b>Definition:</b> <a href="b__lunar_8h_source.html#l00057">b_lunar.h:57</a></div></div>
<div class="ttc" id="structb_lunar_info__t_html_a57ca98d8f6d4baf0fe41c583c7dcb0d5"><div class="ttname"><a href="structb_lunar_info__t.html#a57ca98d8f6d4baf0fe41c583c7dcb0d5">bLunarInfo_t::year</a></div><div class="ttdeci">uint16_t year</div><div class="ttdef"><b>Definition:</b> <a href="b__lunar_8h_source.html#l00059">b_lunar.h:59</a></div></div>
<div class="ttc" id="group___l_u_n_a_r___exported___functions_html_ga2e56b0cadb491906cddfebe953e796a9"><div class="ttname"><a href="group___l_u_n_a_r___exported___functions.html#ga2e56b0cadb491906cddfebe953e796a9">bSolar2Lunar</a></div><div class="ttdeci">int bSolar2Lunar(uint16_t syear, uint8_t smonth, uint8_t sday, bLunarInfo_t *plunar)</div></div>
<div class="ttc" id="structb_lunar_info__t_html_a72369a1087b2aeffe374bb054cb97c12"><div class="ttname"><a href="structb_lunar_info__t.html#a72369a1087b2aeffe374bb054cb97c12">bLunarInfo_t::day</a></div><div class="ttdeci">uint8_t day</div><div class="ttdef"><b>Definition:</b> <a href="b__lunar_8h_source.html#l00061">b_lunar.h:61</a></div></div>
<div class="ttc" id="test_8c_html_ae66f6b31b5ad750f1fe042a706a4e3d4"><div class="ttname"><a href="test_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a></div><div class="ttdeci">int main()</div><div class="ttdef"><b>Definition:</b> <a href="test_8c_source.html#l00006">test.c:6</a></div></div>
<div class="ttc" id="b__lunar_8h_html"><div class="ttname"><a href="b__lunar_8h.html">b_lunar.h</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
